home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 10285 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.7 KB  |  47 lines

  1. Newsgroups: comp.lang.c++
  2. Path: news.uwa.edu.au!DIALix!wmcpet!news
  3. From: mario@wmcmis.DIALix.oz.au (Mario Degasperi (Programmer - MIS))
  4. Subject: MS Visual C DLL File problems
  5. Message-ID: <Dnvqu5.KqK@wmcpet.dialix.oz.au>
  6. Keywords: DLL, Visual C
  7. Sender: news@wmcpet.dialix.oz.au
  8. Reply-To: mario@wmcmis.DIALix.oz.au
  9. Organization: WMC - IT Services
  10. Date: Thu, 7 Mar 1996 04:22:52 GMT
  11.  
  12.  
  13.  
  14. Can any body help
  15.  
  16. Using Microsoft Visual C (Version 5.1), it seems that if a
  17. function from one DLL (DLL A) calls a function in a different
  18. DLL (DLL B), passing to it a file pointer, the characteristics 
  19. and state of the file are changed in DLL B (eg, the file position
  20. pointer and the file contents) almost as if the file pointer
  21. is no longer valid or pointing to a different space in memory.
  22.  
  23. The result is that when a read is attempted, it returns EOF
  24. or reads garbage.
  25.  
  26. The file is opened in DLL A using fopen for read only. There
  27. is nothing wrong with the code itself since it works on other
  28. platforms using normal 'C' objects linked in to an executable.
  29. It also works if the offending function in DLL B is moved to
  30. DLL A.
  31.  
  32. If anybody has encounter this problem or similar problems, or
  33. knows a solution, could you please let me know.
  34.  
  35. Thanks, Mario.
  36. -- 
  37.  
  38. +=======================================================================+
  39. | ---    Mario Degasperi  -  Programmer                                 |
  40. |/* *\   Contracting to Western Mining Corporation ACN 004 184 598      |
  41. || ? |                                                                  |
  42. ||\_/|   Phone :  (09) 4422136                                         |
  43. |\___/   MIS: mario@wmcmis.dialix.oz.au                
  44. +=======================================================================+
  45.  
  46.  
  47.